package so.ifl.servcie;

import java.util.List;
import java.util.Map;

import org.springframework.transaction.annotation.Transactional;

import so.ifl.vo.CoachCardVo;

/**
 *create by aaron.lu
 *create at 2013-2-27 下午11:10:21
 *<mailto: atyuan.lu@gmail.com>
 **/
@Transactional
public interface CoachCardService {
	
	/**
	 * 查询教练证信息
	 * create by aaron.lu
	 * create at 2013-2-27 下午11:12:51
	 * <mailto: atyuan.lu@gmail.com>
	 * @param params
	 * @param offset
	 * @param limit
	 * @return
	 *
	 */
	public List<CoachCardVo> queryCoachCardWithParamAndPagination(Map<String, Object> params, Integer offset, Integer limit);
	
	/**
	 * 统计教练证信息
	 * create by aaron.lu
	 * create at 2013-2-27 下午11:13:32
	 * <mailto: atyuan.lu@gmail.com>
	 * @param params
	 * @return
	 *
	 */
	public Integer countCoachCardWithParam(Map<String, Object> params);
	
	/**
	 * 新增教练证信息
	 * create by aaron.lu
	 * create at 2013-2-27 下午11:14:04
	 * <mailto: atyuan.lu@gmail.com>
	 * @param coachCardVo
	 *
	 */
	public void insertCoachCard(CoachCardVo coachCardVo);
	
	/**
	 * 更新教练证信息
	 * create by aaron.lu
	 * create at 2013-2-27 下午11:14:28
	 * <mailto: atyuan.lu@gmail.com>
	 * @param coachCardVo
	 *
	 */
	public void updateCoachCard(CoachCardVo coachCardVo);
	
	/**
	 * 删除教练证信息
	 * create by aaron.lu
	 * create at 2013-2-27 下午11:14:51
	 * <mailto: atyuan.lu@gmail.com>
	 * @param coachCardId
	 *
	 */
	public void deleteCoachCard(Integer coachCardId);
}
